package tr.gov.tubitak.bilgem.esya.certviewer.viwerasn;

import sun.awt.image.ShortInterleavedRaster;
import tr.gov.tubitak.bilgem.esya.certviewer.Bundle;

import java.security.cert.PolicyQualifierInfo;
import java.util.HashMap;

/**
 * Created by IntelliJ IDEA.
 * User: ramazan.girgin
 * Date: 12/6/11
 * Time: 11:49 AM
 * To change this template use File | Settings | File Templates.
 */
public class EPolicyQualifierInfo {

    public static  String getPolicyIdStr(String policyId)
    {
        if(policyQualifierInfoPolicyIds.containsKey(policyId))
        {
            return policyQualifierInfoPolicyIds.get(policyId);
        }
        return policyId;
    }

    @Override
    public String toString() {
        String retStr = "";
        return retStr;
    }

    private static HashMap<String, String> policyQualifierInfoPolicyIds = null;
    static{
        policyQualifierInfoPolicyIds = new HashMap<String, String>(2);
        policyQualifierInfoPolicyIds.put("1.3.6.1.5.5.7.2.1", Bundle.getString("EPolicyQualifierInfo.cps"));
        policyQualifierInfoPolicyIds.put("1.3.6.1.5.5.7.2.2",Bundle.getString("EPolicyQualifierInfo.UserNotice"));
    }

}
